namespace RBAC.Read.Api.Application.Command.ERP.InboundManagement
{
    using MediatR;
    using RBAC.ErrorCode;
    using RBAC.Read.Api.Application.Dto.ERP;

    /// <summary>
    /// 采购入库 分页查询 命令
    /// </summary>
    public class GetPurchaseStoragePageCommand : IRequest<APIPaging<PurchaseStorageListDto>>
    {
        public int PageIndex { get; set; } = 1;
        public int PageSize { get; set; } = 10;

        /// <summary>单据编码 模糊查询</summary>
        public string? OrderCode { get; set; }

        /// <summary>仓库 模糊查询</summary>
        public string? Warehouse { get; set; }

        /// <summary>开始时间（包含）</summary>
        public DateTime? StartDate { get; set; }

        /// <summary>结束时间（包含）</summary>
        public DateTime? EndDate { get; set; }

        /// <summary>排序，默认按 Id 倒序</summary>
        public string OrderBy { get; set; } = "Id DESC";
    }
}
